<?php
namespace App\Component\Cache;

class FileSystemDriver extends \Hyperf\Cache\Driver\FileSystemDriver{

    public function has($key)
    {
        if(parent::get($key)){
            return true;
        }
        parent::delete($key);
        return false;
    }
}